@extends('app')
@section('content')
	<article class="post">
		<h1 class="post_title">{{ $archive->title }}</h1>
		<hr>
		<div class="post_content">
		{!! $archive->html !!}
		</div>
		<hr>
		<div class="post_info">
			<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> <a href="{{ url('category',$archive->category_id) }}"> {{ $archive->category->category_name }} </a>
			<span class="glyphicon glyphicon-time" aria-hidden="true"></span> {{ $archive->created_at }}
			@if ($admin)
			<a href="{{ url('archive/edit',$archive->id) }}">Edit</a>
			<a href="{{ url('archive/delete',$archive->id) }}">Delete</a>
			@endif
		</div>
		</article>
@endsection
